//package com.qianbei.user.income;
//
//import android.os.Bundle;
//import android.support.annotation.Nullable;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//
//import com.alibaba.fastjson.JSON;
//import com.android.volley.Request;
//import com.qianbei.R;
//import com.qianbei.common.LoadMoreListView;
//import com.qianbei.common.base.BaseFragment;
//import com.qianbei.common.init.SetData;
//import com.qianbei.common.net.control.ServerControl;
//import com.qianbei.common.net.control.ServerResult;
//
//import java.util.List;
//
//
//public class MoneyFragment extends BaseFragment {
//
//
//    private View view;
//    private LoadMoreListView mIncomeListView;
//    private String userID;
//    private List<IncomeBean.DataBean.MoneylistBean> moneyList;
//    private PointAdapter incomeAdapter;
//
//    @Override
//    public View onCreateView(LayoutInflater inflater,
//                             @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
//
//        view = View.inflate(getActivity(), R.layout.gufei_transprot_activity, null);
//        userID = SetData.getUserID();
//
//        mIncomeListView = (LoadMoreListView) view.findViewById(R.id.income_list_view);
//        initGetData();
//        return view;
//    }
//
//    private void initGetData() {
//        ServerControl sc = new ServerControl(Request.Method.GET, DETAIL_OF_INCOME + userID + "?");
//
//        sc.serverListener = new ServerControl.ServerListener() {
//            @Override
//            public void serverFinish(ServerResult sr) {
//                if (sr.isContinue) {
//                    IncomeBean incomeBean = JSON.parseObject(sr.bodyData.toString(), IncomeBean.class);
//
//                    moneyList = incomeBean.getData().getMoneylist();
//
//                    MoneyAdapter incomeAdapter = new MoneyAdapter(getActivity(), moneyList);
//                    mIncomeListView.setAdapter(incomeAdapter);
//                }
//            }
//        };
//        sc.startVolley();
//    }
//
//
//}